import 'package:get/get.dart';

/// * 作者: Tao
/// * 日期: 2024/3/20
/// * 时间: 10:47
/// * 描述: 字符管理，后续可以使用多语言
class Strings {
  static const String appName = 'appName';
  static const String loading = 'loading';

  static const String loginAccountNameHint = 'loginAccountNameHint';
  static const String loginAccountPwdHint = 'loginAccountPwdHint';
  static const String loginAccountRePwdHint = 'loginAccountRePwdHint';
  static const String loginButton = 'loginButton';
  static const String loginSuccess = 'loginSuccess';

  static const String registerButton = 'registerButton';
  static const String registerServiceTerms = 'registerServiceTerms';
  static const String registerAccountEmpty = 'registerAccountEmpty';
  static const String registerAccountLength = 'registerAccountLength';
  static const String registerPasswordEmpty = 'registerPasswordEmpty';
  static const String registerPasswordLength = 'registerPasswordLength';
  static const String registerRePasswordEmpty = 'registerRePasswordEmpty';
  static const String registerRePasswordLength = 'registerRePasswordLength';
  static const String registerPasswordDiff = 'registerPasswordDiff';
  static const String registerNotServiceTerms = 'registerNotServiceTerms';
  static const String registerSuccess = 'registerSuccess';

  static const String homeComplex = 'homeComplex';
  static const String homeProject = 'homeProject';
  static const String homeMy = 'homeMy';
  static const String homeCollect = 'homeCollect';
  static const String homePoints = 'homePoints';
  static const String homeFollow = 'homeFollow';
  static const String homeHistory = 'homeHistory';
  static const String homeUserInfo = 'homeUserInfo';
  static const String homeAbout = 'homeAbout';
  static const String homeShare = 'homeShare';
  static const String homeFeedback = 'homeFeedback';

  static const String webEditHint = 'webEditHint';
  static const String webNotComment = 'webNotComment';

  static const String userNickname = 'userNickname';
  static const String userPointsRanking = 'userPointsRanking';

  static const String userRankingTitle = 'userRankingTitle';
  static const String userRankingNumber = 'userRankingNumber';
  static const String userRankingCoin = 'userRankingCoin';

  static const String aboutTitle = 'aboutTitle';
  static const String aboutVersion = 'aboutVersion:';
  static const String aboutBuild = 'aboutBuild';
  static const String aboutGithub = 'aboutGithub';
  static const String aboutCSDN = 'aboutCSDN';
  static const String aboutSupport = 'aboutSupport';
  static const String aboutCopyright = 'aboutCopyright';

  static const String feedbackTitleStar = "feedbackTitleStar";
  static const String feedbackHint = "feedbackHint";
  static const String feedbackUploadPhoto = "feedbackUploadPhoto";
  static const String feedbackContact = "feedbackContact";
  static const String feedbackOptional = "feedbackOptional";
  static const String feedbackConnectQQ = "feedbackConnectQQ";
  static const String feedbackConnectHint = "feedbackConnectHint";
  static const String feedbackSubmit = "feedbackSubmit";
  static const String feedbackToast = "feedbackToast";
  static const String feedbackSuccess = "feedbackSuccess";
  static const String feedbackContent = "feedbackContent";

  static const String pointsDetailTitle = "pointsDetailTitle";
  static const String pointsNotifySuccess = "pointsNotifySuccess";

  static const String settingTitle = "settingTitle";
  static const String settingLanguage = "settingLanguage";
  static const String settingLanguageDefault = "settingLanguageDefault";
  static const String settingCache = "settingCache";
  static const String settingCacheSuccess = "settingCacheSuccess";
  static const String settingCacheFail = "settingCacheFail";
  static const String settingExitLogin = "settingExitLogin";

  static const String refreshNoData = "refreshNoData";
  static const String refreshError = "refreshError";
  static const String refreshPull = "refreshPull";
  static const String refreshPullUp = "refreshPullUp";
  static const String refreshHeaderIdle = "refreshHeaderIdle";
  static const String refreshHeaderFailed = "refreshHeaderFailed";
  static const String refreshHeaderSuccess = "refreshHeaderSuccess";
  static const String refreshHeaderFreed = "refreshHeaderFreed";

  static const String collectTitle = "collectTitle";

  static const String enter = "enter";
  static const String quit = "quit";

  static const String shareApplication = "shareApplication";
  static const String shareHint = "shareHint";
  static const String shareSaveLocal = "shareSaveLocal";
  static const String shareBrowser = "shareBrowser";
  static const String saveSuccess = "saveSuccess";
}

/// * 作者: Tao
/// * 日期: 2024/3/20
/// * 时间: 10:47
/// * 描述: 多语言配置，使用Getx的多语言配置
/// * 后续使用Get.updateLocale(Locale)来切换语言
class Messages extends Translations {
  @override
  Map<String, Map<String, String>> get keys => {
        'zh_CN': {
          //中文简体
          Strings.appName: '博时',
          Strings.loading: '加载中...',
          Strings.loginAccountNameHint: '请输入账号名',
          Strings.loginAccountPwdHint: '请输入密码',
          Strings.loginAccountRePwdHint: '请再次输入密码',
          Strings.loginButton: '登录',
          Strings.loginSuccess: '登录成功',
          Strings.registerButton: '注册',
          Strings.registerServiceTerms: '已阅读并同意服务条款',
          Strings.registerAccountEmpty: '请输入用户名～',
          Strings.registerAccountLength: '用户名至少6位～',
          Strings.registerPasswordEmpty: '请输入密码～',
          Strings.registerPasswordLength: '密码至少6位～',
          Strings.registerRePasswordEmpty: '请确认输入密码～',
          Strings.registerRePasswordLength: '确认密码至少6位～',
          Strings.registerPasswordDiff: '两次输入的密码不一致～',
          Strings.registerNotServiceTerms: '请同意服务条款～',
          Strings.registerSuccess: '注册成功～',
          Strings.homeComplex: '综合',
          Strings.homeProject: '项目',
          Strings.homeMy: '我的',
          Strings.homeCollect: '收藏',
          Strings.homePoints: '积分',
          Strings.homeFollow: '关注',
          Strings.homeHistory: '历史',
          Strings.homeUserInfo: '个人信息',
          Strings.homeAbout: '关于',
          Strings.homeShare: '分享',
          Strings.homeFeedback: '问题反馈',
          Strings.webEditHint: '说点什么吧...',
          Strings.webNotComment: '暂不支持发表评论哟',
          Strings.userNickname: '昵称',
          Strings.userPointsRanking: '快来查看积分排行榜吧~',
          Strings.userRankingTitle: '积分排行榜',
          Strings.userRankingNumber: '排名',
          Strings.userRankingCoin: '累计积分',
          Strings.aboutTitle: '关于博时',
          Strings.aboutVersion: '版本:',
          Strings.aboutBuild: 'build:',
          Strings.aboutGithub: 'Github',
          Strings.aboutCSDN: 'CSDN',
          Strings.aboutSupport: '技术支持',
          Strings.aboutCopyright: 'Copyright@2021\nAll Right Reserved',
          Strings.feedbackTitleStar: "问题反馈*",
          Strings.feedbackHint: "您可以在这里输入反馈内容",
          Strings.feedbackUploadPhoto: "上传截图",
          Strings.feedbackContact: "联系方式",
          Strings.feedbackOptional: "(选填)",
          Strings.feedbackConnectQQ: "联系QQ群:704273239",
          Strings.feedbackConnectHint: "请输入您的联系方式",
          Strings.feedbackSubmit: "提交",
          Strings.feedbackToast: "最多选择4张哟~",
          Strings.feedbackSuccess: "反馈成功!",
          Strings.feedbackContent: "请填写反馈内容!",
          Strings.pointsDetailTitle: "积分明细",
          Strings.settingTitle: "设置",
          Strings.settingLanguage: "语言",
          Strings.settingLanguageDefault: "跟随系统",
          Strings.settingCache: "清除缓存",
          Strings.settingCacheSuccess: "清除缓存成功!",
          Strings.settingCacheFail: "清除缓存失败!",
          Strings.settingExitLogin: "退出登录",
          Strings.pointsNotifySuccess: "刷新成功",
          Strings.refreshNoData: "没有更多数据啦",
          Strings.refreshError: "加载失败!",
          Strings.refreshPull: "下拉加载",
          Strings.refreshPullUp: "上拉加载",
          Strings.refreshHeaderIdle: "上拉刷新",
          Strings.refreshHeaderFreed: "释放刷新",
          Strings.refreshHeaderFailed: "刷新失败!",
          Strings.refreshHeaderSuccess: "刷新成功",
          Strings.collectTitle: "我的收藏",
          Strings.enter: "确认",
          Strings.quit: "取消",
          Strings.shareApplication: "实用博客APP推荐给您",
          Strings.shareHint: "博时,您的博客管家",
          Strings.shareSaveLocal: "保存到本地",
          Strings.shareBrowser: "浏览器打开",
          Strings.saveSuccess: "保存成功",
        },
        'zh_HK': {
          //中文繁体
          Strings.appName: '博時',
          Strings.loading: '加載中...',
          Strings.loginAccountNameHint: '請輸入賬戶名',
          Strings.loginAccountPwdHint: '請輸入密碼',
          Strings.loginAccountRePwdHint: '請再次輸入密碼',
          Strings.loginButton: '登錄',
          Strings.loginSuccess: '登錄成功',
          Strings.registerButton: '註冊',
          Strings.registerServiceTerms: '已閱讀並同意服務條款',
          Strings.registerAccountEmpty: '請輸入與用戶名～',
          Strings.registerAccountLength: '用戶名至少6位～',
          Strings.registerPasswordEmpty: '請輸入密碼～',
          Strings.registerPasswordLength: '密碼至少6位～',
          Strings.registerRePasswordEmpty: '請輸入確認密碼～',
          Strings.registerRePasswordLength: '確認密碼至少6位～',
          Strings.registerPasswordDiff: '兩次輸入的密碼不一致～',
          Strings.registerNotServiceTerms: '請同意服務條款～',
          Strings.registerSuccess: '註冊成功～',
          Strings.homeComplex: '綜合',
          Strings.homeProject: '項目',
          Strings.homeMy: '我的',
          Strings.homeCollect: '收藏',
          Strings.homePoints: '積分',
          Strings.homeFollow: '關注',
          Strings.homeHistory: '歷史',
          Strings.homeUserInfo: '個人信息',
          Strings.homeAbout: '關於',
          Strings.homeShare: '分享',
          Strings.homeFeedback: '問題反饋',
          Strings.webEditHint: '說點什麼吧...',
          Strings.webNotComment: '暫不支持發表評論喲',
          Strings.userNickname: '暱稱',
          Strings.userPointsRanking: '快來查看積分排行榜吧~',
          Strings.userRankingTitle: '積分排行榜',
          Strings.userRankingNumber: '排名',
          Strings.userRankingCoin: '累計積分',
          Strings.aboutTitle: '關於博時',
          Strings.aboutVersion: '版本:',
          Strings.aboutBuild: 'build:',
          Strings.aboutGithub: 'Github',
          Strings.aboutCSDN: 'CSDN',
          Strings.aboutSupport: '技術支持',
          Strings.aboutCopyright: 'Copyright@2021\nAll Right Reserved',
          Strings.feedbackTitleStar: "問題反饋*",
          Strings.feedbackHint: "您可以在這裡輸入反饋內容",
          Strings.feedbackUploadPhoto: "上次截圖",
          Strings.feedbackContact: "聯繫方式",
          Strings.feedbackOptional: "(選填)",
          Strings.feedbackConnectQQ: "聯繫QQ群:704273239",
          Strings.feedbackConnectHint: "請輸入您的聯繫方式",
          Strings.feedbackSubmit: "提交",
          Strings.feedbackToast: "最多選擇4張喲~",
          Strings.feedbackSuccess: "反饋成功!",
          Strings.feedbackContent: "請填寫反饋內容!",
          Strings.pointsDetailTitle: "積分明細",
          Strings.settingTitle: "設置",
          Strings.settingLanguage: "語言",
          Strings.settingLanguageDefault: "跟隨系統",
          Strings.settingCache: "清除緩存",
          Strings.settingCacheSuccess: "清除緩存成功!",
          Strings.settingCacheFail: "清除緩存失敗!",
          Strings.settingExitLogin: "退出登錄",
          Strings.pointsNotifySuccess: "刷新成功",
          Strings.refreshNoData: "沒有更多數據啦",
          Strings.refreshError: "加載失敗!",
          Strings.refreshPull: "下拉加載",
          Strings.refreshPullUp: "上拉加載",
          Strings.refreshHeaderIdle: "上拉刷新",
          Strings.refreshHeaderFreed: "釋放刷新",
          Strings.refreshHeaderFailed: "刷新失敗!",
          Strings.refreshHeaderSuccess: "刷新成功",
        },
        'en_US': {
          Strings.appName: 'BlogTime',
          Strings.loading: 'Loading...',
          Strings.loginAccountNameHint: 'Please enter the account name',
          Strings.loginAccountPwdHint: 'Please enter the password',
          Strings.loginAccountRePwdHint: 'Please enter the password again',
          Strings.loginButton: 'Login',
          Strings.loginSuccess: 'login successful',
          Strings.registerButton: 'Register',
          Strings.registerServiceTerms:
              'I have read and agreed to the terms of service',
          Strings.registerAccountEmpty: 'Please enter user name～',
          Strings.registerAccountLength: 'At least 6 usernames～',
          Strings.registerPasswordEmpty: 'Please enter the password～',
          Strings.registerPasswordLength: 'Password at least 6 digits～',
          Strings.registerRePasswordEmpty: 'Please confirm the password～',
          Strings.registerRePasswordLength: 'Password at least 6 digits～',
          Strings.registerPasswordDiff:
              'The two passwords entered are inconsistent～',
          Strings.registerNotServiceTerms:
              'Please agree to the terms of service～',
          Strings.registerSuccess: 'Registration success～',
          Strings.homeComplex: 'comprehensive',
          Strings.homeProject: 'project',
          Strings.homeMy: 'mine',
          Strings.homeCollect: 'collect',
          Strings.homePoints: 'Points',
          Strings.homeFollow: 'Follow',
          Strings.homeHistory: 'History',
          Strings.homeUserInfo: 'Personal information',
          Strings.homeAbout: 'About',
          Strings.homeShare: 'Share',
          Strings.homeFeedback: 'Feedback',
          Strings.webEditHint: 'Say something...',
          Strings.webNotComment: 'Do not support commenting ye',
          Strings.userNickname: 'Nickname',
          Strings.userPointsRanking: 'Come and check the ranking list~',
          Strings.userRankingTitle: 'Points ranking',
          Strings.userRankingNumber: 'Rank',
          Strings.userRankingCoin: 'Accumulated points',
          Strings.aboutTitle: 'About Bosera',
          Strings.aboutVersion: 'Version:',
          Strings.aboutBuild: 'build:',
          Strings.aboutGithub: 'Github',
          Strings.aboutCSDN: 'CSDN',
          Strings.aboutSupport: 'Technical Support',
          Strings.aboutCopyright: 'Copyright@2021\nAll Right Reserved',
          Strings.feedbackTitleStar: "Feedback*",
          Strings.feedbackHint: "You can enter feedback content here",
          Strings.feedbackUploadPhoto: "Upload screenshot",
          Strings.feedbackContact: "Contact information",
          Strings.feedbackOptional: "(Optional)",
          Strings.feedbackConnectQQ: "Contact QQ group:704273239",
          Strings.feedbackConnectHint: "Please enter your contact information",
          Strings.feedbackSubmit: "Submit",
          Strings.feedbackToast: "Choose up to 4~",
          Strings.feedbackSuccess: "Feedback success!",
          Strings.feedbackContent: "Please fill in the feedback content!",
          Strings.pointsDetailTitle: "Points details",
          Strings.settingTitle: "Setting",
          Strings.settingLanguage: "Language",
          Strings.settingLanguageDefault: "Follow System",
          Strings.settingCache: "Clear cache",
          Strings.settingCacheSuccess: "Clear cache successfully!",
          Strings.settingCacheFail: "Failed to clear cache!",
          Strings.settingExitLogin: "Sign out",
          Strings.pointsNotifySuccess: "Refresh successfully",
          Strings.refreshNoData: "No more data",
          Strings.refreshError: "Failed to load!",
          Strings.refreshPull: "Drop-down loading",
          Strings.refreshPullUp: "Pull up loading",
          Strings.refreshHeaderIdle: "Pull up to refresh",
          Strings.refreshHeaderFreed: "Release refresh",
          Strings.refreshHeaderFailed: "Refresh failed!",
          Strings.refreshHeaderSuccess: "Refresh successfully",
        }
      };
}
